package cn.wen233.core.wrapper.query;

import cn.wen233.basic.model.Instance;
import cn.wen233.core.mapper.InstanceMapper;
import cn.wen233.core.utils.IocUtils;

import java.util.List;

/**
 * @author wenei
 * @date 2021-10-24 15:46
 */
public class InstanceQuery {

    private static final InstanceMapper instanceMapper = IocUtils.getBean(InstanceMapper.class);

    public static Integer getServiceInstanceCount(String serviceId) {
        return instanceMapper.selectInstanceCountByServiceId(serviceId);
    }
}
